package ServerDB;

public class NotifyMonitor {
	private DisconnectionType[] hasNotified = new DisconnectionType[2];
	
	public NotifyMonitor() {
		hasNotified[0] = hasNotified[1] = DisconnectionType.NONE;
	}
	
	public synchronized void setNotified(int playerNumber, DisconnectionType type) {
		this.hasNotified[playerNumber] = type;
	}
	
	public synchronized DisconnectionType getNotified(int playerNumber) {
		return this.hasNotified[playerNumber];
	}
}
